﻿using WeDonekRpc.Helper.Validate;

namespace Shop.RemoteModel.PageModule.ModuleConfig
{
    public class ImgHostConfig
    {
        [NullValidate("shop.page.img.host.id.null")]
        public string Id { get; set; }
        /// <summary>
        /// X轴
        /// </summary>
        [NumValidate("shop.page.img.host.x.error", 0)]
        public float X
        {
            get;
            set;
        }
        /// <summary>
        /// Y轴
        /// </summary>
        [NumValidate("shop.page.img.host.y.error", 0)]
        public float Y
        {
            get;
            set;
        }
        /// <summary>
        /// 宽度
        /// </summary>
        [NumValidate("shop.page.img.host.width.error", 0)]
        public float Width
        {
            get;
            set;
        }
        /// <summary>
        /// 高度
        /// </summary>
        [NumValidate("shop.page.img.host.height.error", 0)]
        public float Height
        {
            get;
            set;
        }
        /// <summary>
        /// 跳转内容
        /// </summary>
        public PageJumpContent Content { get; set; }
    }
}
